package com.xing.binbackend.pattern.factory12.operation.lazyinit;

import org.springframework.stereotype.Component;

import java.math.BigDecimal;

// 2. 具体支付实现（具体产品）
@Component("WechatPay")
class WechatPay implements PaymentProcessor {
    @Override
    public void processPayment(BigDecimal amount) {
        System.out.println("微信支付：" + amount + "元");
    }
}
